<?php

namespace app\common\model;

/**
 * [JingjianService  进件服务资料表]
 * @author [C。]
 * @return html
 */
class JingjianService extends Base
{
    protected $name = 'jingjian_service';
    /**
     * 列表信息
     */
    public function getlist($map,$from = 0, $size = 5,$field = '*')
    {
        $order = ['id' => 'desc'];
        $result =  $this->field($field)
            ->where($map)
            ->order($order)
            ->limit($from, $size)
            ->select();

        return $result;
    }

    /**
     * 总数
     * @param array $param
     */
    public function getCount($map) {
        return $this
            ->where($map)
            ->count();
    }
}